#ifndef TEACHER_H
#define TEACHER_H
#include <QString>
#include <string>
#include <QObject>
#include "person.h"
using std::string;
class Teacher : public person
{
    Q_OBJECT
public:
    explicit Teacher(QObject *parent = nullptr);
//    Teacher():Person(){
//        level="level";
//        direction="direction";
//        }
        Teacher(QString nmb,QString nm,bool sx,int ae,QString le,QString cge,QString dr,QString tm,int pro=0,int pa=0);

        QString findlevel();
        void setlevel(QString le);
        QString finddirection();       ///查询研究方向
        void setdirection(QString dr);    ///修改研究方向
        void save(ostringstream& os);

private:
    QString level;
    QString direction;

signals:

};

#endif // TEACHER_H
